﻿@model MasResourceGroup

@{
    var resType = new KPIS.GERP.WEB.GIMS.MasResourceService.MasResourceServiceClient().
        SelectResourceType(new MasResourceType{ResTypeId = ViewBag.ResTypeId}, null).FirstOrDefault();
    ViewBag.CustomMenu = new Dictionary<string, string>
        {
            {
                "ประเภท" + resType.Name, Url.Action("Index", "MasResourceType")
            },
            {
                "หมวด", Url.Action("Index", "MasResourceGroup", new {resTypeId= resType.ResTypeId})
            }
        };
	ViewBag.resType = resType; 
	ViewBag.Title = "ข้อมูลหมวดพัสดุ"; 
    ViewBag.Descr = "รายละเอิยดหมวดพัสดุ" + (Model.Name ?? string.Empty);
}

<div class="block-button-menu-above">
    @Html.ButtonViewAll(new{ViewBag.ResTypeId})
    @Html.ButtonEdit(new { id = Model.ResGrpId, ViewBag.ResTypeId })
    @Html.ButtonAdd(new {ViewBag.ResTypeId})
    @Html.ButtonDelete(new { id = Model.ResGrpId,ViewBag.ResTypeId})
</div>
    
@Html.Partial("_DetailsForm")

@section scripts
{
    <script>


    </script>
}